package com.fa.wisdom.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fa.wisdom.R;
import com.fa.wisdom.model.MsgEntity;

import java.util.List;

public class QiuzhuAdapter extends BaseQuickAdapter<MsgEntity, BaseViewHolder> {
    private List<MsgEntity> list;

    public QiuzhuAdapter(List<MsgEntity> newsList) {
        super(R.layout.item_qiu_jl, newsList);
        this.list = newsList;
    }

    @Override
    protected void convert(BaseViewHolder helper, MsgEntity item) {
        TextView title=helper.getView(R.id.tv_title);
        TextView time=helper.getView(R.id.tv_time);
        title.setText(item.getTitle());
        time.setText(item.getTime());
    }
}
